package com.lvcoding.action;

import com.lvcoding.bean.User;
import com.lvcoding.service.UserService;
import com.opensymphony.xwork2.Action;

/**
 * @author wuyanshen
 * @discription 描述
 * @date 2020-07-08 5:46 下午
 */
public class UserAction implements Action {

    private User user;

    private UserService userService;


    @Override
    public String execute() throws Exception {
        userService.save(user);
        return Action.SUCCESS;
    }


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

}
